package com.hx.order.pojo;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
/**
 * item实体类
 * @author Administrator
 *
 */
@Table(name="order_item")
@Data
public class Item implements Serializable{

	@Id
	private Long id;//id


	
	@Column(name = "order_id")
	private String orderId;//订单id
	@Column(name = "drug_id")
	private Long drugId;//药品id

	private Integer num;//数量

	private String name;//药品名

	private Long price;//价格

	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}

	public String getOrderId() {
		return orderId;
	}
	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public Long getDrugId() {
		return drugId;
	}
	public void setDrugId(Long drugId) {
		this.drugId = drugId;
	}

	public Integer getNum() {
		return num;
	}
	public void setNum(Integer num) {
		this.num = num;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public Long getPrice() {
		return price;
	}
	public void setPrice(Long price) {
		this.price = price;
	}


	
}
